package ExerciseOne;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class CallableTest {
	public static void main(String[] args) {
		ExecutorService service = Executors.newFixedThreadPool(5);
		service.execute(new Myth());
		service.execute(new Mythread());
		service.shutdown();
	}

}

class Myth implements Runnable
{

	@Override
	public void run() {
		System.out.println(Thread.currentThread().getName()+":"+"你真棒");
	}
}

class Mythread implements Runnable
{

	@Override
	public void run() {
		System.out.println(Thread.currentThread().getName()+":"+"多练几遍");
	}
	
}